package com.utils;

public class StringUtils {

	/**
	 * 获取总的字符长度(即将中文算2个字符)
	 * 
	 * @param str
	 * @return
	 */
	public static int getStrChinesLen(String str) {
		return str.length();
	}

	public static String getStrChinesReplace(String str) {
		return str.replaceAll("[\\u4e00-\\u9fa5]", "**");
	}

}
